<div class="jestesw"><?php echo $this->translate("produkt_ma");?> / <span><?php echo $this->translate("lay_cart");?></span></div>
<div class="naglowek"><?php echo $this->translate("lay_cart");?></div>
<div class="konto">
	<div class="cart">
		<div class="etap now">1. <?php echo $this->translate("index_aprove");?></div>
		<div class="etap">2. <?php echo $this->translate("index_ship");?></div>
		<div class="etap">3. <?php echo $this->translate("index_pay");?></div>
		<div class="hr"></div>
		<?php 
		if(count($this->basket))
		{
			foreach($this->basket as $key => $val){
				$price = unserialize($this->list[$key]['price']);
				foreach($val as $k => $v){
					?>
					<div class="pozycja">
						<img src="<?php echo $this->File( $this->list[$key]['image'], 'small' ) ?>"/>
						<div class="p1"><span><?php echo $this->list[$key]['title']?></span><span><?php echo substr($this->list[$key]['description'], 0, 40);?><?php echo (strlen($this->list[$key]['description'])>40) ? '...' : ''?></span></div>
						<div class="p2"><?php echo $this->translate("index_qua");?></div>
						<div class="p3"><span><?php echo $v?></span></div>
						<div class="p2"><?php echo $this->translate("index_size");?></div>
						<div class="p3"><span><?php echo $k?></span></div>
						<div class="p5"><a href="<?php echo $this->baseUrl()?>/basket/rem/id/<?php echo $key?>/size/<?php echo $k?>"><?php echo $this->translate("index_rem");?></a></div>
						<div class="p4"><?php echo number_format($price[$this->currency], 2, ',', ' ').$this->currency?></div>
					</div>
					<div class="hr"></div>
					<?php 
				}
			}
		}
		else {
			echo $this->translate("index_empty");
		}
		?>
		<div class="end" style="margin-bottom: 4px;"></div>
		<div class="podsumowanie2">
			<a href="<?php echo $_SERVER['HTTP_REFERER']?>" class="back"><?php echo $this->translate("index_back");?></a>
			<div class="info">
				<div><?php echo $this->translate("index_price");?> : <span><?php echo  number_format($this->basket_prize, 2, ',', ' ').$this->currency?></span></div>
				<div><?php echo $this->translate("index_ship");?> : <span>0</span></div>
				<div class="total"><?php echo $this->translate("index_total");?>: <span><?php echo  number_format($this->basket_prize, 2, ',', ' ').$this->currency?></span></div>
				<div><?php if(count($this->basket)){?><a href="<?php echo $this->baseUrl()?><?php echo (isSet($this->userData))? '/basket/ship' : '/index/auth'?>" class="kup"><?php echo $this->translate("index_buy");?></a><?php }?></div>
			</div>
		</div> 
	</div>
</div>